import request from '@/util/request.js'
/**
 * @description 分类
 * @param data
 * @returns {*}
 */
export function getCategoryApi(data) {
	return request({
		url: '/applyRepairCategory',
		method: 'GET',
		data
	})
}
/**
 * @description 表单提交
 * @param data
 * @returns {*}
 */
export function saveApplyApi(data) {
	return request({
		url: '/saveApply',
		method: 'POST',
		data
	})
}
/**
 * @description 我的报修列表
 * @param data
 * @returns {*}
 */
export function getApplyListApi(data) {
	return request({
		url: '/applyList',
		method: 'GET',
		data
	})
}
/**
 * @description 我的报修详情
 * @param data
 * @returns {*}
 */
export function getApplyDetailApi(id) {
	return request({
		url: `/applyDetail/${id}`,
		method: 'GET'
	})
}